package com.iheima.reggie_take.dto;

import com.iheima.reggie_take.entity.Dish;
import com.iheima.reggie_take.entity.DishFlavor;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

/**
 * dto 额外封装的接收数据的 包
 */

@Data
public class DishDto extends Dish {
    //这里继承于Dish 又新建了新的属性
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;
}
